package test2;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class test4 {
	public void main() {
		Integer[] intTab = new Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
		List<Integer> intList = Arrays.<Integer>asList(intTab);
		
		System.out.println("Przed modyfikacja:");
		System.out.println(Arrays.toString(intTab));
		for(int i:intList){
			System.out.print(i+", ");
		}
		//MOD
		intList.set(0, 10);
		//===
		System.out.println("\nPo modyfikacji:");
		System.out.println(Arrays.toString(intTab));
		for(int i:intList){
			System.out.print(i+", ");
		}
		System.out.println();
	}
}
